package cn.com.code.generator.thread;

import java.util.List;
import java.util.UUID;

public interface CommonThreadExecutionService {
    /**
     *  批量执行任务
     * @param execution
     * @param endFlag
     * @param threadId
     * @param sequence
     * @return
     * @throws Exception
     */
    int executeBatch(ThreadExecution execution, MultiEndFlag endFlag, UUID threadId, List<Integer> sequence) throws Exception;
}
